In [1]:
import IPython
import ipywidgets
import context
import gopro_helper as gopro
In [2]:
%load_ext autoreload
%autoreload 2
In [3]:
# Fetch new information from camera
raw_status, raw_settings = gopro.commands.get_raw_status_settings()
info_status = gopro.api.parse_status_names(raw_status)
name_mode, name_sub_mode = gopro.api.parse_mode_sub_mode(info_status)
name_mode
Out[3]:
In [4]:
gopro.commands.set_mode_photo()
In [5]:
# List features for current mode (copied from API notebook)
features = gopro.api.mode_features(name_mode)
for F in features:
print('{:2d} - {:22s} [{}]'.format(F['id'], F['path_segment'], F['display_name']))
In [6]:
# List features for current mode (copied from API notebook)
features = gopro.api.mode_features(name_mode)
for F in features:
print(F['path_segment'])
In [7]:
wid = gopro.Settings()
In [18]:
wid.start()
In [9]:
wid.stop()
In [16]:
gopro.commands.set_mode_photo()
In [8]:
gopro.commands.set_mode_video()
In [ ]:
wid.up